#ifndef __GROUPUSER_H__
#define __GROUPUSER_H__

#include "user.hpp"
#include <string>

class GroupUser:public User
{
public:
    GroupUser(int id = -1, const std::string &name = "", 
        const std::string &pwd = "", const std::string &state = "offline", 
        const std::string &role = "normal") 
    :User(id, name, pwd, state)
    ,role_(role)
    {

    }
    void setRole(const std::string &role) { role_ = role; }
    std::string getRole() const { return role_; }
private:
    std::string role_;
};

#endif